Repository navigation
fix: refresh the drill sandbox image on every run and name the pg_attver failure (2.11.2) - #73
Merged
Merged
Conversation
…ver failure (2.11.2) The drill pulled its sandbox image (postgres:17-alpine, pgvector/pgvector:pg17) only when it wasn't local, so a long-lived worker stayed on whatever minor version it pulled first. On 2026-11-24 a drill failed for a project that Supabase had moved to the November 2026 security release (CVE-2026-6460): a pre-update pg_dump writes "ALTER COLUMN ... SET (pg_attver=...)" for such databases, PostgreSQL 17.10 rejects it as an unrecognized parameter, and every CREATE TABLE in the dump failed. 17.12 accepts and ignores the line. - ensureImage now runs docker pull even when the image is local. If that refresh fails (offline, rate limited) or takes over 5 minutes, the drill falls back to the local copy with a warning instead of failing. - A pg_attver rejection is reported as what it is, ahead of the missing- extension attribution that previously blamed supabase_vault. - restore adds the same explanation when the target is the older one.
… run, match only the primary pg_attver error Co-review round 1 fixes.
… pg_attver from each failure's primary error Co-review round 2 fixes.
…t the pg_attver classifier on the alert's failures Co-review round 3 fixes.
…k when one is cached; tests pull only on a cache miss
…eout or interrupt Co-review round 4 fix.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What happened
On 2026-11-24 a scheduled drill failed for a project whose database Supabase had moved to the November 2026 PostgreSQL security release (CVE-2026-6460). With that release, a
pg_dumpthat predates it writesALTER TABLE ... ALTER COLUMN ... SET (pg_attver=...)for every column. The drill sandbox was stillpostgres:17-alpineat 17.10, because the drill pulled its image only when it wasn't local, and 17.10 rejects that line as an unrecognized parameter, so everyCREATE TABLEfailed. 17.12 accepts and ignores it. The failure was also misattributed tosupabase_vault, since the follow-on "type ... does not exist" errors matched the missing-extension check.Changes (2.11.2)
docker rungets--pull=never, so it can't pull a second time outside these limits.unrecognized parameter "pg_attver"is now reported as an outdated sandbox, ahead of the missing-extension attribution.restoregives matching advice when the target is the older version. Both match only the primary error, not statement text.Verification
pg_attverlines. With a stale 17.10 sandbox and the refresh failing, the drill now prints thepg_attverexplanation. With a real refresh, it pulls 17.12 and the drill passes.Cross-review
This repo is public, so the raw reviewer output is archived locally rather than pasted here. There were five Codex code rounds; the last one, from the pre-push hook on b2e07de, found 0 blockers. One copy round covered the changed messages and one covered the README. Every finding is answered in the archive.
The plugin's pinned
backupdrill@2.11.0will be bumped in a follow-up PR after 2.11.2 is published to npm.